package com.micro.modual.entity;

import javax.persistence.Id;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * <h1>优惠券表表 micro_coupon</h1>
 *
 * @author levelcoder
 * @date 2020-08-04 00:11:10
 */
@ApiModel(description = "优惠券表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "micro_coupon")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "主键编号")
    private Long id;


    /**
     * 优惠券模版编号
     */
    @ApiModelProperty(value = "优惠券模版编号")
    private String templateCode;


    /**
     * 用户编号:领取人用户编号
     */
    @ApiModelProperty(value = "用户编号:领取人用户编号")
    private String userCode;


    /**
     * 优惠券编号
     */
    @ApiModelProperty(value = "优惠券编号")
    private String couponCode;


    /**
     * 领取时间
     */
    @ApiModelProperty(value = "领取时间")
    private Date assignTime;


    /**
     * 优惠券状态
     */
    @ApiModelProperty(value = "优惠券状态 ")
    private Integer couponStatus;


    /**
     * 领取人昵称
     */
    @ApiModelProperty(value = "领取人昵称")
    private String userNickName;


    /**
     * 领取方式 1.主动领取 2.注册赠送 3.活动赠送
     */
    @ApiModelProperty(value = "领取方式 1.主动领取 2.注册赠送 3.活动赠送")
    private Integer receiveType;

}
